package com.zlsy.springbootdemo.controller;

import java.util.Objects;

/**
 * @author zhouliang
 * @date 2021/1/23 11:18
 */
public class TestRequest {
  private String logisticCompany;

  public String getLogisticCompany() {
    System.out.println(logisticCompany);
    return logisticCompany;
  }

  public void setLogisticCompany(String logisticCompany) {
    TestEnum testEnum = TestEnum.get(logisticCompany);
    if (Objects.isNull(testEnum)) {
      throw new IllegalArgumentException("参数异常！");
    }
    this.logisticCompany = logisticCompany;
  }
}
